<template>
  <button :class="className" @click="clickHandler"><slot /></button>
</template>
<script>
export default {
  props: {
    size: {
      type: String,
      default: 'mini'
    }
  },
  computed: {
    className() {
      return this.size
    }
  },
  methods: {
    clickHandler() {
      this.$emit('click')
    }
  }
}
</script>
<style lang="scss" scoped>
.mini{
    padding: 30px;
}
.large{
    padding: 50px;
}
</style>
